import request from '@/utils/request'

// 查询停用词列表
export function listStopWord(query) {
  return request({
    url: '/system/stopWord/list',
    method: 'get',
    params: query
  })
}

// 查询停用词详细
export function getStopWord(id) {
  return request({
    url: '/system/stopWord/' + id,
    method: 'get'
  })
}

// 新增停用词
export function addStopWord(data) {
  return request({
    url: '/system/stopWord',
    method: 'post',
    data: data
  })
}

// 修改停用词
export function updateStopWord(data) {
  return request({
    url: '/system/stopWord',
    method: 'put',
    data: data
  })
}

// 删除停用词
export function delStopWord(id) {
  return request({
    url: '/system/stopWord/' + id,
    method: 'delete'
  })
}

// 导出停用词
export function exportStopWord(query) {
  return request({
    url: '/system/stopWord/export',
    method: 'get',
    params: query
  })
}